package com.design.cjm.behavioral.command.example;

/**
 * @Author: Jie Ming Chen
 * @Date: 2018/9/25
 * @Version 1.0
 */
public class TestApp {

    public static void main(String[] args) {

        // 消息接收者
        Receiver receiver = new Receiver();

        // 命令
        Command command = new ConcreteCommand(receiver);

        // 发起命令
        Invoker invoker = new Invoker();
        invoker.setCommand(command);

        invoker.executeCommand();

    }
}
